import ssl
from app import app
from src.utils.logger import log_info
import os

if __name__ == '__main__':
    cert_file = os.path.abspath('local.pem')
    key_file = os.path.abspath('local-key.pem')

    log_info("API服务器启动")
    app.run(host='0.0.0.0', port=5000, debug=True
            ,ssl_context=(cert_file, key_file))